/* * @Author: Zhengxuan Ye * @Date: 2025-05-06 21:26:59 * @Last Modified by: Zhengxuan Ye * @Last
Modified time: 2025-05-11 00:33:26 */

<template>
  <div class="not-found">
    <div class="container">
      <div class="not-found-content">
        <h1>404</h1>
        <h2>页面未找到</h2>
        <p>抱歉，您访问的页面不存在或已被移动。</p>
        <router-link to="/" class="btn-home">返回首页</router-link>
      </div>
      <div class="not-found-image">
        <div class="image-placeholder"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'NotFoundView',
}
</script>

<style scoped>
.not-found {
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.not-found-content {
  flex: 1;
  text-align: center;
}

.not-found-content h1 {
  font-size: 8rem;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
}

.not-found-content h2 {
  font-size: 2rem;
  margin: 0 0 20px;
  color: var(--dark-color);
}

.not-found-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

.not-found-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-placeholder {
  width: 100%;
  max-width: 400px;
  height: 300px;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  color: #777;
}

.btn-home {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.btn-home:hover {
  background-color: #b42c2c;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column-reverse;
  }

  .not-found-content h1 {
    font-size: 6rem;
  }

  .not-found-content h2 {
    font-size: 1.5rem;
  }

  .image-placeholder {
    height: 200px;
  }
}
</style>
